# -*- coding: utf-8 -*-#
#-------------------------------------------------------------------------------
# 建立者:        潘炎珍  
# Name:         demo01
# Description:
# Author:       98745
# Date:         2019/3/2
#-------------------------------------------------------------------------------

class person:
    def set(self,name):
        self.name=name
    def get(self):
        return self.name
    def greet(self):
        print('hello,i am {name}'.format(name=self.name))
p1=person()
p2=person()
p1.set('pan yan zhen')
p2.name='pan yan yan'
print(p1.get())
p1.greet()
print(p2.name)
# person.greet(p2)